package com.bsj.power.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.power.common.def.dto.job.SysJobDTO;
import com.bsj.power.common.def.entity.job.SysJob;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author yinhao
 * @version 1.0
 * @description 系统定时任务
 * @date 2024/1/23
 */
@Repository
public interface SysJobMapper extends BaseMapper<SysJob> {

    /**
     * 获取全部定时任务信息
     *
     * @return
     */
    List<SysJob> selectAllJob();

    /**
     * 根据条件获取quartz调度器的计划任务列表
     *
     * @param sysJob
     * @return
     */
    List<SysJob> selectJobList(SysJob sysJob);

    /**
     * 绑定设备
     *
     * @param job
     * @return java.lang.Integer
     * @author ljx
     * @time 2025/3/1 12:01
     */
    Integer bindDevice(SysJobDTO job);
}
